package com.szit.test.entity;


import java.io.Serializable;

/**
 * 功能：花店销售实体类
 *
 * @author 勇哥
 * @version 1.0 2025-05-15
 */
public class Sale implements Serializable {
    private int id;
    private String name;
    private boolean isreceived;
    private String sdate;
    private double price;

    // 添加头像属性
    private String photo;

    private int categoryid;

    // 创建子对象属性
    private Category province;

    public Sale(){
        province = new Category();
    }

    public Sale(int id, String name, boolean isreceived, String sdate, double price, String photo, int categoryid) {
        this.id = id;
        this.name = name;
        this.isreceived = isreceived;
        this.sdate = sdate;
        this.price = price;
        this.photo = photo;
        this.categoryid = categoryid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean getIsreceived() {
        return isreceived;
    }

    public void setIsreceived(boolean isreceived) {
        this.isreceived = isreceived;
    }

    public String getSdate() {
        return sdate;
    }

    public void setSdate(String sdate) {
        this.sdate = sdate;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public int getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(int categoryid) {
        this.categoryid = categoryid;
    }

    public Category getProvince() {
        return province;
    }

    public void setProvince(Category province) {
        this.province = province;
    }
}
